/**
 * @file lua_api.h
 * @author HaoyuWang (136046355@qq.com)
 * @brief lua调用c++接口
 * @version 0.1
 * @date 2025-02-11
 * 
 * @copyright Copyright (c) 2025
 * 
 */
#ifndef __LUA_API_H__
#define __LUA_API_H__

#include "lua.hpp"

class LuaAPI
{
private:
    /* data */
public:
    LuaAPI(/* args */);
    ~LuaAPI();

    static void Register(lua_State *lua_state);

    static int NewService(lua_State *lua_state);
    static int KillService(lua_State *lua_state);
    static int Send(lua_State *lua_state);
    static int Listen(lua_State *lua_state);
    static int CloseConn(lua_State *lua_state);
    static int Write(lua_State *lua_state);
    static int EntireWrite(lua_State *lua_state);
};


#endif  // __LUA_API_H__